home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2933 < prev    next >
Encoding:
Text File  |  1996-08-05  |  913 b   |  36 lines

  1. Path: arctic-0.vf.pond.com!user
  2. From: tkuntz@pond.com (Tim Kuntz)
  3. Newsgroups: comp.lang.c
  4. Subject: Very Beginner Question with Think C
  5. Date: Wed, 24 Jan 1996 17:43:18 -0400
  6. Organization: FishNet
  7. Message-ID: <tkuntz-2401961743180001@arctic-0.vf.pond.com>
  8. NNTP-Posting-Host: arctic-0.vf.pond.com
  9.  
  10. Hi-
  11. I'm taking a course in C at the local Community College and we were to
  12. enter, compile and run the following program:
  13.  
  14. #include "stdio.h"
  15.  
  16. main()
  17. {
  18.    int num;
  19.    float f;
  20.  
  21.    printf("Enter and integer:  ");
  22.    scanf("%d", &num);
  23.  
  24.    printf("Enter a floating point number:  ");
  25.    scanf("%f", &f);
  26.  
  27.    printf("%d ", num);
  28.    printf("%f", f);
  29. }
  30.  
  31. My problem is that when I run it on my Think C compiler at home I get the
  32. message 'link failed'.  What am I doing wrong?
  33.  
  34. My class works on DOS IBM compatible machines and I assume it will work at
  35. school.  I was just hoping to be able to do some work at home on my Mac.
  36.